package com.alex.entity;

import java.util.HashSet;
import java.util.Set;

/**
 * Goods entity. @author MyEclipse Persistence Tools
 */

public class Goods implements java.io.Serializable {

	// Fields

	private Integer goodsid;
	private Catalog catalog;
	private String goodsname;
	private String goodspicture;
	private Integer price;
	private Set orderitems = new HashSet(0);

	// Constructors

	/** default constructor */
	public Goods() {
	}

	/** minimal constructor */
	public Goods(Catalog catalog, String goodsname, Integer price) {
		this.catalog = catalog;
		this.goodsname = goodsname;
		this.price = price;
	}

	/** full constructor */
	public Goods(Catalog catalog, String goodsname, Integer price,
			Set orderitems, String goodspicture) {
		this.catalog = catalog;
		this.goodsname = goodsname;
		this.price = price;
		this.orderitems = orderitems;
		this.goodspicture=goodspicture;
	}

	// Property accessors

	public Integer getGoodsid() {
		return this.goodsid;
	}

	public String getGoodspicture() {
		return goodspicture;
	}

	public void setGoodspicture(String goodspicture) {
		this.goodspicture = goodspicture;
	}

	public void setGoodsid(Integer goodsid) {
		this.goodsid = goodsid;
	}

	public Catalog getCatalog() {
		return this.catalog;
	}

	public void setCatalog(Catalog catalog) {
		this.catalog = catalog;
	}

	public String getGoodsname() {
		return this.goodsname;
	}

	public void setGoodsname(String goodsname) {
		this.goodsname = goodsname;
	}

	public Integer getPrice() {
		return this.price;
	}

	public void setPrice(Integer price) {
		this.price = price;
	}

	public Set getOrderitems() {
		return this.orderitems;
	}

	public void setOrderitems(Set orderitems) {
		this.orderitems = orderitems;
	}

}